Replication Code for:Choulis, Ioannis, Abel Escribà-Folch, & Marius Mehrl - Preventing Dissent: Secret Police And Protests In Dictatorships 
The Journal of Politics 					
Date of Code: 15 August 2023 - Contact: m.mehrl@leeds.ac.uk					

Analyses were conducted using Stata 17 on a Windows computer, non-standard Stata packages used are: btscs.ado, reghdfe, coefplot, did_imputation, eventstudyinteract, sensemakr.

The Replication Materials include the following files:
1. This readme
2. Replication_Analysis_SecPolice_Protest.do - Code used for Analyses re[prted in the paper and appendix
3. Replication_log_secpol_protest.scml - A log file documenting the execution of all merging and analysis steps
4. Replication_Merge_SecPolice_Protest.do - Code used for merging together the raw data files contained in the folder "Source data", resulting in a datafile "Replication_secpol_protest.dta" that should be identical to Replication_secpol_protestComplete.dta. 
5. Replication_secpol_protestComplete.dta - Complete data file that can be used for re-analysis/replication of our analyses without first having to merge raw data.
6. The folder "Source data" - Contains raw data files used to construct "Replication_secpol_protest.dta"/Replication_secpol_protestComplete.dta

Within the folder "Source data" are included the following files, these are described in Replication_Merge_SecPolice_Protest.do:
1. CHISOLSstyr5_0.dta
2. CIRI Data 1981_2011 2014.04.14(1).csv
3. Coup-Proofing 1970-2022.dta
4. eprdata.csv
5. gled_gdppop.csv
6. HumanRightsProtectionScores_v3.01.csv
7. latentdata.dta
8. neighbourProtest.do
9. p5v2018.xls
10. rawdta_secretpolice.dta
11. StateCapacityDataset_v1.dta
12. temp - Escribaajps.dta
13. ucdp-prio-acd-201.dta
14. V-Dem_CSOvariables.dta
15. the folder "GWF Personalization" - Contains files "GWF.dta" and "GWF-personalism-measure.do"
15. the folder "WB pop and GDP pc" - Contains files "08_15_23_0925am_wep.csv" and "varlabel.do"
15. the folder "Temp" - empty but will be filled by running Replication_Merge_SecPolice_Protest.do

Important: Replication requires mirroring the folder structure described here.

